package databaseBL;

import java.rmi.RemoteException;

import po.PO;
import po.User;

import databaseBLService.DatabaseService;



public class DatabaseServiceImpl_Stub implements DatabaseService{
	private static final long serialVersionUID = 1L;
	
	public DatabaseServiceImpl_Stub() {
		
	}
	
	@Override
	public int insert(Object t) throws RemoteException {
		System.out.println("Insert Succeed!\n");
		return 1;
	}

	@Override
	public int delete(String id) throws RemoteException {
		System.out.println("Delete Succeed!\n");
		return 1;
	}

	@Override
	public int update(Object t) throws RemoteException {
		System.out.println("Update Succeed!\n");
		return 1;
	}

	@Override
	public Object find(String input) throws RemoteException {
		System.out.println("Find Succeed!\n");
		PO po = new User();
		return po;
	}

	@Override
	public void init() throws RemoteException {
		System.out.println("Initiate!\n");
	}

	@Override
	public void finish() throws RemoteException {
		System.out.println("Finish!\n");
	}

}